package com.baoyouqun.domain.UpdateCmd;

import com.baoyouqun.domain.Enum.DemandCollectionStatusEnum;
import com.baoyouqun.domain.Enum.DemandCollectionTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class DemandCollectionUpdateCmd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "关联需求ID")
    private String demandId;

    @ApiModelProperty(value = "操作用户ID")
    private String userId;

    @ApiModelProperty(value = "操作类型（1-收藏，-1-取消收藏）")
    private DemandCollectionTypeEnum type;

    @ApiModelProperty(value = "状态（0-取消，1-有效）")
    private DemandCollectionStatusEnum status;

    @ApiModelProperty(value = "操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "状态更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}